# 2. python中可变类型数据有哪些？不可变类型数据有哪些?
# 4. 定义一个匿名函数:可以计算两个数字的和
# func_1 = lambda a, b: a + b
#
# def func(name , sex='保密'):
#     print(name , sex)
#
# list1 = [{'name': 'd', 'age': 19}, {'name': 'b', 'age': 16}, {'name': 'a', 'age': 16}, {'name': 'c', 'age': 20}]
# list1.sort(key=lambda x: x['age'])
# print(list1)

stu_list =[]
j =1
print(f"{j}.添加学生")
j =1+1
print(f"{j}.删除学生")
j =1+2
print(f"{j}.修改学生信息")
j =1+3
print(f"{j}.查询单个学生信息")
j =1+4
print(f"{j}.查询所有学生信息")
j =1+5
print(f"{j}.退出系统")
num =  int(input('请输入用来选择操作编号:'))
def show_info():

    if num == 1:
        name = input('请输入学生名字:')
        age = input('请输入学生年龄:')
        sex = input('请输入学生性别:')
        stu_dict = {'name': name, 'age': age, 'sex': sex}
        print(stu_dict)
        print(stu_dict.get('name'))
        for stu_list in stu_dict:
            if name not in stu_list:
               # stu_list.append(name,age,sex)
               print(f"=======学生信息添加成功=======")

            return

if __name__ == '__main__':
    show_info()




# a = int(input('添加'))
# def show_info():
#